home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-19
/
pkey12_1.zip
/
LF.LSP
< prev
next >
Wrap
Text File
|
1992-09-13
|
603b
|
21 lines
; TURNS THE LAYER OFF......................LF
; THEN TURNS IT BACK ON WHEN NEEDED........LO
;
(defun c:LF (/ a b c d)
(graphscr)
(prompt "\nSelect Object on Layer to OFF...")
(setq a (entsel))
(setq b (entget (car a)))
(setq LO (cdr (assoc 8 b)))
(setq d (getvar "CLAYER"))
(if (= LO d)
(prompt "\nCannot turn off Current Layer, Change to New Layer...")
(command "layer" "OF" LO "")
))
;EOF LF
; THIS BEGINS LAON.LSP
(DEFUN C:LO()
(COMMAND"LAYER""ON" LO ""))
;EOF LO
(princ "\nType LF to turn off layers selected")
(princ "\nType LO to turn layers back on")